/* dont include this file and dont use this function! */

#ifndef __Internal_h__
#define __Internal_h__

#include <Thread/Thread.h>

#include "FileSystem.h"
#include "BFile.h"

typedef std::map<std::string, BFile> FileMap;

struct FileSystemImpl
{
	FileMap myFileMap;
};

extern FileSystemImpl * Impl;

extern Thread * Syncer;

void FileSystem_SyncFile(BFile * file);

void FileSystem_Sync();

void FileSystem_Syncer(void*);

MBlock & FileSystem_GetBlock(FileHandle * file, SizeType iSector);

#endif

